<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>发件人</th>
            <th>主题</th>
            <th>星级</th>
            <th>状态</th>
            <th>时间</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$vo.from_user}</td>
            <td>
                <a href="{:U('pm_view','id='.$vo['id'])}" title="查看短消息 {$vo.subject}" class="lnk-edit-dialog">{$vo.subject} <i class="fa fa-file-text-o"></i></a>
        <if condition="$search['type'] eq 'DRAFTS'">
            <a href="{:U('pm_edit','id='.$vo['id'])}" class="xsui-icon-only lnk-edit"><i class="fa fa-edit"></i></a>
        </if>
        </td>
        <td><input type="text" value="{$vo.star}" size="3" /></td>
        <td class="status">
        <if condition="$vo['read_status'] eq '1'">
            <a href="{:U('change_read_status','id='.$vo['id'].'&status=0')}" title="点击未读" class="xsui-success"><i class="fa fa-check fa-fw"></i>已读</a>
            <else/>
            <a href="{:U('change_read_status','id='.$vo['id'].'&status=1')}" title="点击已读" class="xsui-danger"><i class="fa fa-times fa-fw"></i>未读</a>
        </if></td>
        <td>{$vo.create_time}</td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>